package ru.ncedu.java.dmsi.robots.model;

import ru.ncedu.java.dmsi.robots.world.World;

public class ActionContext {
    World world;
    Point location;

    public ActionContext(World w, Point loc) {
        world = w;
        location = loc;
    }
    boolean isPointFree( Point p ) {
        return world.isPointFree(p);
    }
    public Point getCurrentLocation() {
        return location;
    }
    public int getMinXCoord() {
        return world.getMinXCoord();
    }
    public int getMaxXCoord() {
        return world.getMaxXCoord();
    }
    public int getMinYCoord() {
        return world.getMinYCoord();
    }
    public int getMaxYCoord() {
        return world.getMaxYCoord();
    }

}
